import layout from '@/layout'
export default {
  path: '/employee',
  component: layout,
  name: 'employee',
  children: [{
    path: '',
    name: 'employee',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'people'
    }
    // }, {
    //   path: '/employee/detail/:id?', // 员工详情的地址
    //   component: () => import('@/views/employee/detail.vue'),
    //   hidden: true, // 表示隐藏在左侧菜单
    //   meta: {
    //     title: '员工详情' // 显示在导航的文本
    //   }
    // }
  },
  {
    // :id 叫动态路径参数，类似于占位符
    path: '/employee/detail/:id?',
    name: 'employee-detail',
    hidden: true,
    component: () => import('@/views/employee/detail.vue'),
    meta: {
      title: '员工详情',
      icon: 'people'
    }
  }]
}

// 只想在左侧菜单显示一级菜单的话 让二级路由只有一个显示在左侧菜单
